package com.zhuangjie.rider.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 骑手评价dto
 *
 * @author zhuangjie
 * @date 2024/04/25
 */
@Getter
@Setter
public class RiderEvaluateDTO {
    @ApiModelProperty("订单的id")
    @TableField("order_id")
    @NotNull(message = "订单的id不能为空")
    private Long orderId;

    @ApiModelProperty("评分(0 差 1好)")
    @TableField("score")
    @Min(value = 0, message = "评分的值只能是0或1")
    @Max(value = 1, message = "评分的值只能是0或1")
    private Byte score;

    @ApiModelProperty("flags(用逗号隔开)")
    @TableField("flags")
    private String flags;

    @ApiModelProperty("用户给予的评价")
    @TableField("evaluate")
    private String evaluate;
}
